package com.qf.collection.list;

import java.util.ArrayList;
import java.util.function.Consumer;

public class ArrayListDemo {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("hi");
        list.add("world");
//        System.out.println(list);
//        list.ensureCapacity(100);
//        System.out.println(list);
        list.forEach(s -> System.out.println(s.toUpperCase()));

    }
}
